package cn.cdeden.knowledge.service.impl;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.cdeden.knowledge.domain.PersonalChatHistory;
import cn.cdeden.knowledge.mapper.PersonalChatHistoryMapper;
import cn.cdeden.knowledge.service.PersonalChatHistoryService;
@Service
@RequiredArgsConstructor
public class PersonalChatHistoryServiceImpl extends ServiceImpl<PersonalChatHistoryMapper, PersonalChatHistory> implements PersonalChatHistoryService{

    private final PersonalChatHistoryMapper mapper;

    @Override
    public PersonalChatHistory addOrEdit(PersonalChatHistory personalChatHistory) {
        mapper.insertOrUpdate(personalChatHistory);
        return personalChatHistory;
    }
}
